package com.xiaobai.data.manager.system.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xiaobai.data.manager.system.UserManager;
import com.xiaobai.data.mapper.system.UserMapper;
import com.xiaobai.model.entity.system.User;
import com.xiaobai.model.mp.BaseServiceImpl;
import org.springframework.stereotype.Repository;

@Repository
public class UserManagerImpl extends BaseServiceImpl<UserMapper, User> implements UserManager {
    @Override
    public User getUserInfoByUserId(String username) {
        return this.getOne(new LambdaQueryWrapper<User>().eq(User::getAccount, username), false);
    }
}
